package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 会计项目原因对象 t_reason
 * 
 * @author ruoyi
 * @date 2022-03-17
 */
public class TReason extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 原因ID */
    private Long rid;

    /** 原因名称 */
    @Excel(name = "原因名称")
    private String rname;

    /** 原因代码 */
    @Excel(name = "原因代码")
    private String rcode;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String rtype;

    /** 归属原因 */
    @Excel(name = "归属原因")
    private Long parent;

    private List<TReason> paramst;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long level;

    private String createtime;

    private Long ofCompany;

    private Long ofCompanyType;

    public Long getOfCompanyType() {
        return ofCompanyType;
    }

    public void setOfCompanyType(Long ofCompanyType) {
        this.ofCompanyType = ofCompanyType;
    }

    public Long getOfCompany() {
        return ofCompany;
    }

    public void setOfCompany(Long ofCompany) {
        this.ofCompany = ofCompany;
    }

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    public List<TReason> getParamst() {
        return paramst;
    }

    public void setParamst(List<TReason> paramst) {
        this.paramst = paramst;
    }

    public void setRid(Long rid)
    {
        this.rid = rid;
    }

    public Long getRid() 
    {
        return rid;
    }
    public void setRname(String rname) 
    {
        this.rname = rname;
    }

    public String getRname() 
    {
        return rname;
    }
    public void setRcode(String rcode) 
    {
        this.rcode = rcode;
    }

    public String getRcode() 
    {
        return rcode;
    }
    public void setRtype(String rtype) 
    {
        this.rtype = rtype;
    }

    public String getRtype() 
    {
        return rtype;
    }
    public void setParent(Long parent)
    {
        this.parent = parent;
    }

    public Long getParent()
    {
        return parent;
    }
    public void setLevel(Long level)
    {
        this.level = level;
    }

    public Long getLevel() 
    {
        return level;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("rid", getRid())
            .append("rname", getRname())
            .append("rcode", getRcode())
            .append("rtype", getRtype())
            .append("parent", getParent())
            .append("level", getLevel())
            .toString();
    }
}
